import request from "@/utils/request";

// 登录
export const loginAPI = (loginname: string, password: string) => {
  return request({
    url: "/api/user/login",
    method: "get",
    data: { loginname, password },

    // params: { loginname, password },  搜索参数
    // data: { loginname, password },  请求体参数
  });
};
